package com.hhh;

public class Lx1 {
    public static void main(String[] args) {
        int[] ii = {55, 58, 45, 87, 45};
        System.out.println(hh(ii));
        System.out.println("============================");
        for (int i = 0; i < ii.length; i++) {
            System.out.println(ii[i]);
        }
    }

    public static int hh(int[] aa) {
        int cc = aa[0];
        for (int b = 1; b < aa.length; b++) {
            if (cc > aa[b]) {
                cc = aa[b];
            }
        }
        return cc;
    }
}